const express = require('express')

const history = require('connect-history-api-fallback')
const app = express()

app.use(history())
app.use(express.static(__dirname+'/static'))
app.get('/person', (req, res) => {
  res.send({
      name: 'zs',
      age: 11
  })
})
app.listen(5005, (e) => {
  if(!e) {
      console.log('服务器启动成功!')
  }
})